<?php
class Main extends CI_Controller {

	public function __construct()
	{
		parent::__construct();
		$this->load->model('main_model');
	}

	public function index()
	{
		$data['main'] = $this->main_model->get_main();

		$this->load->view('templates/header', $data);
		$this->load->view('main', $data);
		$this->load->view('templates/footer');
	}

}

?>